#include <iostream>
#include <sys/types.h>
#include <signal.h>
#include <stdlib.h>

int main(int argc, char* argv[])
{
	std::cout << "argc: " << argc << " " << std::endl;
	for(int i = 0; i < argc; i++)
	{
		std::cout << "arg " << i << ": " << std::string(argv[i]) << " ";
	}
	std::cout << std::endl;
	
	if(argc < 3)
	{
		std::cout << "Not enough arguments.Return." << std::endl;
	}
	
	pid_t pid = atoi(argv[1]);
	int sig = atoi(argv[2]);
	kill(pid, sig);
	std::cout << "signal sent." << std::endl;

	return 0;
}
